﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xww.IO.Serialize {
    public static class FastSerializerHelper {
        /*
        public static void Write(this SerializationWriter writer, int? value) {
            writer.Write(value.HasValue);
            if (value.HasValue)
                writer.Write(value);
        }
        public static void Write(this SerializationWriter writer, double? value) {
            writer.Write(value.HasValue);
            if (value.HasValue)
                writer.Write(value);
        }
        public static int? ReadNullableInt32(this SerializationReader reader) {
            bool has = reader.ReadBoolean();
            if (has)
                return reader.ReadInt32();
            else
                return null;
        }
        public static double? ReadNullableDouble(this SerializationReader reader) {
            bool has = reader.ReadBoolean();
            if (has)
                return reader.ReadDouble();
            else
                return null;
        }
        */
    }
}
